<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="6" v-for="(item, i) in list" :key="item.id">
        <div class="grid-content">
          <i :style="{ color: arr[i] }" class="iconfont" :class="item.icon"></i>
          <div>
            <h4>{{ item.text }}</h4>
            <p>{{ item.num }}</p>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  props: {
    arr: {
      type: Array,
      defeult: () => []
    },
    list: {
      type: Array,
      defeult: () => []
    }
  }
}
</script>
<style lang="less" scoped>
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
  padding: 10px 0;

  i {
    font-size: 50px;
    color: pink;
  }
  .grid-content {
    background-color: azure;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    h4 {
      font-size: 18px;
      color: #999;
    }
    p {
      font-size: 20px;
      font-weight: bold;
    }
  }
}

.bg-purple {
  background: #d3dce6;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
</style>
